import request from '@/axios'
//登录api接口
export function login(username, password) {
    return request.post('/admin/login', {username, password})
}

//获取用户信息api接口
export function getUserInfo() {
    return request.post('/admin/getinfo')
}

//退出登录的api接口
export function logout() {
    return request.post('/admin/logout')
}